

export default {


    /**
     * @func 打开页面水印
     * @returns {Promise} 返回一个Promise
     */
    showWatermark: function () {
        return new Promise(async (resolve, reject) => {
            wx.invoke("showWatermark", {}, function (res) {
                resolve(res)
                console.log("打开页面水印----", res);
            });
        })
    },



    /**
     * @func 关闭页面水印
     * @returns {Promise} 返回一个Promise
     */
    hideWatermark: function () {
        return new Promise(async (resolve, reject) => { 
            wx.invoke("hideWatermark", {}, function (res) {
                resolve(res)
                console.log("关闭页面水印----", res);
            });
        })
    },


}